package com.xiaoqi.android_system_project;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

// 接收开机完成广播的receiver
public class BootReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // 启动我们自定义的服务
        System.out.println("广播接收器接收到手机启动");
        context.startService(new Intent(context,ListenSystemService.class));
    }


}
